import request from '@/utils/request'

// 查询产品列表
export function listDevProduct(query) {
  return request({
    url: '/jetLinks/devProduct/list',
    method: 'get',
    params: query
  })
}

// 查询产品详细
export function getDevProduct(id) {
  return request({
    url: '/jetLinks/devProduct/' + id,
    method: 'get'
  })
}

// 新增产品
export function addDevProduct(data) {
  return request({
    url: '/jetLinks/devProduct',
    method: 'post',
    data: data
  })
}

// 修改产品
export function updateDevProduct(data) {
  return request({
    url: '/jetLinks/devProduct',
    method: 'put',
    data: data
  })
}

// 删除产品
export function delDevProduct(id) {
  return request({
    url: '/jetLinks/devProduct/' + id,
    method: 'delete'
  })
}

// 导出产品
export function exportDevProduct(query) {
  return request({
    url: '/jetLinks/devProduct/export',
    method: 'get',
    params: query
  })
}